//
// Created by jsjxsy on 2022/9/1.
//vector嵌套
//
#include <vector>
#include <iostream>
using namespace std;
//
// Created by jsjxsy on 2022/9/1.
// 静态数组
//
#include <vector>
#include <iostream>
using namespace std;
int main() {
  vector<int> v1;
  cout << "v1 size : " << v1.size() << endl;
  cout << "v1 capacity : " << v1.capacity() << endl;
  cout << "v1 empty : " << boolalpha << v1.empty() << endl;
  for (int i = 0; i < 10; i++) {
    v1.push_back(i + 1);
  }
  cout << "v1 size : " << v1.size() << endl;
  cout << "v1 capacity : " << v1.capacity() << endl;
  cout << "v1 empty : " << boolalpha << v1.empty() << endl;

  vector<int> v2;
  v2.resize(5, 1);
  v2.push_back(1);
  v2.push_back(2);
  v2.push_back(3);
  v2.push_back(4);
  v2.push_back(5);
  cout << "v2 capacity : " << v2.capacity() << endl;
  for (int i = 0; i < 10; i++) {
    cout << v2.at(i) << " ";
  }
  cout << endl;

  vector<int> v3;
  v3.resize(4);
  v3.push_back(1);
  v3.push_back(2);
  v3.push_back(3);
  v3.push_back(4);
  cout << "v3 capacity : " << v3.capacity() << endl;
  cout << "v3 size : " << v3.size() << endl;

  return 0;
}

